package strategy;

import java.util.Comparator;
import java.util.concurrent.RejectedExecutionHandler;

/**
 * @program: javase
 * @description: 测试类
 * @author: luolidong
 * @create: 2021-07-06 19:54
 * @version: 1.0
 */
public class Test {
    public static void main(String[] args) {
        //策略1
        Pay pay = new Pay(new AliPay());
        pay.doPay();
        //策略2
        Pay pay1 = new Pay(new WeChatPay());
        pay1.doPay();

    }
}
